import {
	request
} from "@/common/config.js"

export function _VideoCategory() {
	return request({
		url: `/video/category/list`,
		method: 'get'
	})
}
export function _getGroup(id,offset) {
	return request({
		url: `/video/group?id=${id}&offset=${offset}`,
		method: 'get'
	})
}
export function _getVideoUrl(id) {
	return request({
		url: `/video/url?id=${id}`,
		method: 'get'
	})
}

export function _getVideoDetail(id) {
	return request({
		url: `/video/detail?id=${id}`,
		method: 'get'
	})
}
export function _getTotal(vid) {
	return request({
		url: `/video/detail/info?vid=${vid}`,
		method: 'get'
	})
}

export function _getRecommendVideo(offset){
	return request({
		url:`/video/timeline/recommend?offset=${offset}`,
		method:'get'
	})
}